<template>
  <div class="hello" id="mapContent"></div>
</template>

<script>

import mapApp from "@/plugins/index.js"
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  mounted(){
    window.mapApp = new mapApp("mapContent",{})
  },
  methods:{
    // 定位
    getdh(station){
      window.mapApp.getTo(station)
    },
    // 新增并且定位到这个实体
    addEntity(entity){
      window.mapApp.addMark(entity)
    },
    removeEntity(id){
      window.mapApp.removeEntity(id)
    },
    showsupply(id){
      debugger
         window.mapApp.showsupply(id)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello{
  height: 100%;
}
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
